64 debug nan jersey num error sar#65
Merged
calvinyeungck merged 5 commits intomasterfrom Jan 30, 2026
Merged
Conversation
Init Test Results 📝
|
Init Test Results 📝
|
Init Test Results 📝
|
calvinyeungck
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and fixes to the soccer data preprocessing pipeline, focusing on more robust handling of missing data, improved error reporting, and enhanced code clarity through English comments and refactoring. The most significant changes include improved substitution event handling, replacing debugging breakpoints with assertion errors, and clarifying comments throughout the codebase.
Key changes:
Robust handling of substitutions and missing data:
get_changed_player_listfunction to fill missingjersey_numbervalues for substitution events by inferring fromplayer_nameandhome_away, improving data consistency across different leagues.get_timestamp, replaced a generic exception with a specificIndexErrorto improve error clarity when extracting frame IDs.Error handling and debugging improvements:
pdb.set_trace()debugging breakpoints with explicitAssertionErrorexceptions in several functions (interpolate_ball_tracking_data,get_player_change_log_legacy,merge_ball_only_series) to ensure that unexpected data inconsistencies are surfaced as errors rather than halting execution for manual debugging. [1] [2] [3] [4]Version update:
0.1.42to0.1.43inpyproject.tomlto reflect these changes.